﻿<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="~/Unit3-Session1.aspx.cs" Inherits="Unit3_Session1" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <div>
    Hotel Name:
    <asp:textbox runat="server" ID="txtHotelName"></asp:textbox>
        <asp:RequiredFieldValidator ID="rqdHotelName" runat="server" ErrorMessage="Hotel Name is required" ControlToValidate="txtHotelName" />

        <br />
        <br />
        Hotel Website:
        <asp:TextBox ID="txtHotelUrl" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rqdtxtHotelUrl" runat="server" ErrorMessage="Hotel Url is required" ControlToValidate="txtHotelUrl" />

        <br />
        <br />
        Picture:
        <asp:FileUpload ID="fleUploadPicture" runat="server" />
        <asp:RegularExpressionValidator ID="rgxUploadPicture" runat="server" ErrorMessage="Picture should be in the following formats" ControlToValidate="fleUploadPicture" ValidationExpression="^.*\.((j|J)(p|P)(e|E)?(g|G)|(g|G)(i|I)(f|F)|(p|P)(n|N)(g|G))$" />
        <br />
        <br />
        Ratings<asp:RadioButtonList ID="rdoRatings" runat="server" RepeatDirection="Horizontal">
            <asp:ListItem Selected="True">1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
        </asp:RadioButtonList>
        <br />
        <br />
        Description:<br />
        <br />
        <asp:TextBox ID="txtHotelDescription" runat="server" TextMode="MultiLine"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rqdHotelDescription" runat="server" ErrorMessage="Hotel Decription is required" ControlToValidate="txtHotelDescription" />

        <br />
        <br />
        <asp:Button ID="btnAddHotel" runat="server" OnClick="btnAddHotel_Click" Text="Add New Hotel" />

    </div>
</asp:Content>